package com.day2;
import java.util.Scanner;
public class ScannerTest {
    public static void main(String[] args){
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入第一个和尚身高：");
        int h1=sc.nextInt();
        System.out.println("请输入第二个和尚身高：");
        int h2=sc.nextInt();
        System.out.println("请输入第三个和尚身高：");
        int h3=sc.nextInt();
        int tempheight= (h1 > h2) ? h1: h2;
        int maxheight=tempheight>h3?tempheight:h3;
        System.out.println("最高的和尚身高为："+maxheight+"cm");
    }
}
